package com.fw.dao;

import java.util.List;

import com.fw.model.Permission;
import com.fw.model.Role;
import com.fw.model.User;

public interface UserDao {
	public User query_userByUNameAndUPwdDao(User user);
	public Integer query_totalUserDao(String sql);
	public List<User> query_allUserByPageDao(String sql, int firstPage,int maxPage);
	public boolean delete_userByIdDao(User user);
	public boolean add_userDao(User user);
	public User query_userByEmailDao(User user);
	public boolean update_userByIdDao(User user);
	public User query_userByIdDao(User user);
	public Role query_roleByUserDao(User user);
	public boolean update_userRoleDao(User user,Role role);
	public boolean userIsPermissionDao(User user,Permission permisson);
	public boolean update_user_pwdDao(User user);
}
